// 公共的方法
import Vue from 'vue'
Vue.prototype.$jumpToPath = function (url, params = '') {
  if (!url) {
    return
  }
  console.log(url, params)
  if (url.param) {
    this.$router.push({
      path: `/${url.param.url}`
    })
    return
  }
  this.$router.push({
    path: `/pages/${url}`,
    query: params
  })
}
